package top.bugger168.content.api;

import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import top.bugger168.content.model.dto.CourseCategoryTreeDto;
import top.bugger168.content.service.CourseCategoryService;

import javax.annotation.Resource;
import java.util.List;

@Api(value = "课程分类管理接口",tags = "课程分类管理接口")
@Slf4j
@RestController
public class CourseCategoryController {
    @Resource
    CourseCategoryService courseCategoryService;

    @GetMapping("/course-category/tree-nodes")
    public List<CourseCategoryTreeDto> queryTreeNodes(){
        return courseCategoryService.queryTreeNodes("1");
    }
}
